﻿<%@ Page Language="C#" MasterPageFile="~/Members/Members.master" AutoEventWireup="true"
    CodeFile="quan-ly-tin.aspx.cs" Inherits="Members_quan_ly_tin" Title="Untitled Page" %>

<%@ Register Assembly="obout_Grid_NET" Namespace="Obout.Grid" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <center>
        <h2>
            Quản lý tin</h2>
        <div>
            <table cellspacing="0" cellpadding="0" width="100%">
                <tbody>
                    <tr>
                        <td align="center">
                            <table cellspacing="0" cellpadding="0" style="margin-top: 0.75em; width: 80%;">
                                <tbody>
                                    <tr>
                                        <td align="left">
                                            <div style="width: 100%;">
                                                <div>
                                                    <div style="text-align: center; color: Blue">
                                                        <h2>
                                                            <asp:Label ID="lblResult" runat="server"></asp:Label>
                                                        </h2>
                                                    </div>
                                                </div>
                                                <div class="block">
                                                    <table cellspacing="0" cellpadding="2" width="100%">
                                                        <tbody>
                                                            <tr>
                                                                <td>
                                                                    <%--<asp:GridView ID="gvSearch" runat="server">
                                                                    </asp:GridView>--%>
                                                                    <asp:GridView ID="gvSearch" runat="server" CellPadding="4" ForeColor="#333333" AutoGenerateColumns="False"
                                                                        GridLines="None" Width="1214px" AllowPaging="True" PageSize="15" OnPageIndexChanging="gvSearch_PageIndexChanging">
                                                                        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                                                                        <RowStyle BackColor="#E3EAEB" Height="25" />
                                                                        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                                                                        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                                                                        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" Height="30" ForeColor="White" />
                                                                        <EditRowStyle BackColor="#7C6F57" />
                                                                        <AlternatingRowStyle BackColor="White" />
                                                                        <Columns>
                                                                            <asp:TemplateField HeaderText="Tiêu đề">
                                                                                <ItemTemplate>
                                                                                    <a href='<%# Eval("URLPath") %>'>
                                                                                        <%# Eval("ProductName").ToString().Trim() %></a>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:BoundField DataField="ViewTime" HeaderText="Lượt xem">
                                                                                <HeaderStyle HorizontalAlign="left" />
                                                                                <ItemStyle HorizontalAlign="Left" />
                                                                            </asp:BoundField>
                                                                            <asp:TemplateField HeaderText="Ngày đăng">
                                                                                <ItemTemplate>
                                                                                    <%# Utils.Format.FormatVietNameDate(Convert.ToDateTime(Eval("CreateDate"))) %>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Ảnh">
                                                                                <ItemTemplate>
                                                                                    <img src='<%#ReturnImage(Eval("ProductImage"))%>' alt='<%# Eval("ProductName") %>'
                                                                                        width="30px" height="30px" />
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:HyperLinkField HeaderText="Edit" DataNavigateUrlFormatString="~/Members/chinh-sua-tin-dang.aspx?id={0}"
                                                                                DataNavigateUrlFields="ProductID" Text="Edit">
                                                                                <HeaderStyle HorizontalAlign="left" />
                                                                                <ItemStyle HorizontalAlign="Left" />
                                                                            </asp:HyperLinkField>
                                                                        </Columns>
                                                                    </asp:GridView>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <%--<cc1:Grid ID="Grid1" runat="server" AllowAddingRecords="False" 
        AllowFiltering="True" AllowGrouping="True" AutoGenerateColumns="False">
        <Columns>
            <cc1:Column DataField="ProductName" HeaderText="Tiêu đề tin" Index="0"  Width="680px">
            </cc1:Column>
            <cc1:Column DataField="CreateDate" HeaderText="Ngày đăng" Index="1">
            </cc1:Column>
        </Columns>
    </cc1:Grid>--%>
        <hr />
    </center>
</asp:Content>
